package com.uduemc.biso.core.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.extities.center.MasterUser;
import com.uduemc.biso.core.feign.MasterUserFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class MasterUserFeignFallback implements FallbackFactory<MasterUserFeign> {

	@Override
	public MasterUserFeign create(Throwable cause) {
		return new MasterUserFeign() {

			@Override
			public RestResult updateByIdSelective(MasterUser masterUser) {
				return null;
			}

			@Override
			public RestResult updateById(MasterUser masterUser) {
				return null;
			}

			@Override
			public RestResult insertSelective(MasterUser masterUser) {
				return null;
			}

			@Override
			public RestResult insert(MasterUser masterUser) {
				return null;
			}

			@Override
			public RestResult findOne(Long id) {
				return null;
			}

			@Override
			public RestResult findByUsername(String username) {
				return null;
			}

			@Override
			public RestResult deleteById(Long id) {
				return null;
			}
		};
	}

}
